package entity

type OrderGrab struct {
	Id        int64  `gorm:"column:id;primary_key" json:"id"`
	OrderId   string `gorm:"column:order_id;type:varchar(255);not null" json:"order_id"`
	UserId    string `gorm:"column:user_id;type:varchar(255);not null" json:"user_id"`
	GrabTime  int64  `gorm:"column:grab_time;type:bigint;not null" json:"grab_time"`
	Status    int    `gorm:"column:status;type:integer;not null" json:"status"`
	CreatedAt int64  `gorm:"column:created_at;type:bigint;not null" json:"created_at"`
	UpdatedAt int64  `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
}

func (o *OrderGrab) TableName() string {
	return "order_grabs"
}
